#!/bin/sh

[ ! -d "$1" ] && echo "$1 does not exist" && exit 1

pwd=$(pwd)
cd "$1" || exit
deflac . -b320
rm ./*.flac ./*.cue ./*.log
cd "$pwd" || exit
